﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;

namespace GrayParrot.Web.Controls
{
    public class ValidationSettings<T> : ValidationBase
    {
        private new string Message { get; set; }
        private List<T> m_data = new List<T>();

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content), PersistenceMode(PersistenceMode.InnerProperty)]
        public List<T> Settings
        {
            get
            {
                if (m_data == null)
                {
                    m_data = new List<T>();
                }

                return m_data;
            }
            set { m_data = value; }
        }

        public ValidationSettings()
        {
        }
    }
}
